package farmer.game;

import core.game.StateBasedGame;
import core.state.BasicState;

public class FarmerBoyGame extends StateBasedGame{
	
	public static final int MainGame = 0;
	public static final int LoadingScreen = 1;
	public static final int MainMenu = 2;
	public static final int Tutorial = 3;
	public static final int InGameMenu = 4;

	public FarmerBoyGame(String name) {
		super(name);
	}

	@Override
	public void initStates() {
		BasicState state;
		
		state = new MainGameState(this, MainGame);
		addState(state);
		
		state = new LoadingScreenState(this, LoadingScreen);
		state.init();
		addState(state);
		
		state = new MainMenuState(this, MainMenu);
		addState(state);
		
		state = new TutorialState(this, Tutorial);
		addState(state);
		
		state = new InGameMenuState(this, InGameMenu);
		addState(state);
		
		enterState(LoadingScreen);
		//updateStates();
		//enterState(MainGame);
	}

	@Override
	public void updateStates(){
		getState(MainMenu).init();
	}

}
